package com.example.security.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="token")
public class BeanConfig {


    private  static String secret="jwtsecrity";

    private  static String issUser="wangkai";

    private  static String Authorization="token";

    private static Long expireTime=30L;


    public static String getSecret() {
        return secret;
    }

    public  void setSecret(String secret) {
        BeanConfig.secret = secret;
    }

    public static String getIssUser() {
        return issUser;
    }

    public  void setIssUser(String issUser) {
        BeanConfig.issUser = issUser;
    }

    public static String getAuthorization() {
        return Authorization;
    }

    public  void setAuthorization(String authorization) {
        Authorization = authorization;
    }

    public static Long getExpireTime() {
        return expireTime;
    }

    public  void setExpireTime(Long expireTime) {
        BeanConfig.expireTime = expireTime;
    }
}
